package com.nbst.model.mes;

import java.util.Date;

/**
 * 
 * @ClassName: ItemStockLock
 * @Description:物料库存占用表
 * @author King
 * @date 2018年12月9日
 *
 */
public class ItemStockLock {
	
	/**销售订单号*/
	private String fBillNo;
	
	/** 销售订单分录内码 */
	private Integer fDetailID;
	
	/**订单产品名称*/
	private String fOrderItemName;

	/**订单产品代码*/
	private String fOrderItemNumber;
	
	/** 物料内码 */
	private Integer fItemId;
	
	/** 订单产品Bom需求量 */
	private Double fTotal;

	/** 占用数量 */
	private Double fQty;

	/** 时间 */
	private Date fDate;

	/** 1 库存满足 2库存不满足 */
	private Integer fType;

	/** 0 关闭标志 */
	private Integer fClosed;

	/** 是否为销售订单产品 1为是 */
	private Integer fIsOrderItem;

	/** 上级物料代码 */
	private String fParentNumber;

	/** bom层级 */
	private Integer rank;

	/** 减去库存后的需求量 */
	private Double fNeedQty;
	
	/**实际订单需求量*/
	private Double fOrderNeedQty;
	
	/**备货占用数*/
	private Double fStockUpQty;

	public String getfBillNo() {
		return fBillNo;
	}

	public void setfBillNo(String fBillNo) {
		this.fBillNo = fBillNo;
	}

	public Integer getfDetailID() {
		return fDetailID;
	}

	public void setfDetailID(Integer fDetailID) {
		this.fDetailID = fDetailID;
	}

	public String getfOrderItemName() {
		return fOrderItemName;
	}

	public void setfOrderItemName(String fOrderItemName) {
		this.fOrderItemName = fOrderItemName;
	}

	public String getfOrderItemNumber() {
		return fOrderItemNumber;
	}

	public void setfOrderItemNumber(String fOrderItemNumber) {
		this.fOrderItemNumber = fOrderItemNumber;
	}

	public Integer getfItemId() {
		return fItemId;
	}

	public void setfItemId(Integer fItemId) {
		this.fItemId = fItemId;
	}

	public Double getfTotal() {
		return fTotal;
	}

	public void setfTotal(Double fTotal) {
		this.fTotal = fTotal;
	}

	public Double getfQty() {
		return fQty;
	}

	public void setfQty(Double fQty) {
		this.fQty = fQty;
	}

	public Date getfDate() {
		return fDate;
	}

	public void setfDate(Date fDate) {
		this.fDate = fDate;
	}

	public Integer getfType() {
		return fType;
	}

	public void setfType(Integer fType) {
		this.fType = fType;
	}

	public Integer getfClosed() {
		return fClosed;
	}

	public void setfClosed(Integer fClosed) {
		this.fClosed = fClosed;
	}

	public Integer getfIsOrderItem() {
		return fIsOrderItem;
	}

	public void setfIsOrderItem(Integer fIsOrderItem) {
		this.fIsOrderItem = fIsOrderItem;
	}

	public String getfParentNumber() {
		return fParentNumber;
	}

	public void setfParentNumber(String fParentNumber) {
		this.fParentNumber = fParentNumber;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Double getfNeedQty() {
		return fNeedQty;
	}

	public void setfNeedQty(Double fNeedQty) {
		this.fNeedQty = fNeedQty;
	}

	public Double getfOrderNeedQty() {
		return fOrderNeedQty;
	}

	public void setfOrderNeedQty(Double fOrderNeedQty) {
		this.fOrderNeedQty = fOrderNeedQty;
	}

	public Double getfStockUpQty() {
		return fStockUpQty;
	}

	public void setfStockUpQty(Double fStockUpQty) {
		this.fStockUpQty = fStockUpQty;
	}

	@Override
	public String toString() {
		return "ItemStockLock [fBillNo=" + fBillNo + ", fDetailID=" + fDetailID + ", fOrderItemName=" + fOrderItemName
				+ ", fOrderItemNumber=" + fOrderItemNumber + ", fItemId=" + fItemId + ", fTotal=" + fTotal + ", fQty="
				+ fQty + ", fDate=" + fDate + ", fType=" + fType + ", fClosed=" + fClosed + ", fIsOrderItem="
				+ fIsOrderItem + ", fParentNumber=" + fParentNumber + ", rank=" + rank + ", fNeedQty=" + fNeedQty
				+ ", fOrderNeedQty=" + fOrderNeedQty + ", fStockUpQty=" + fStockUpQty + "]";
	}

}